package com.dongpl.module.sysLog.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dongpl.module.sysLog.entity.SysLog;
import com.dongpl.module.sysLog.service.SysLogService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/sys_log")
public class SysLogController {

    @Resource
    private SysLogService service;

    @RequestMapping("getList")
    public Page<SysLog> getList(){
//        Page<SysLog> page = new Page<>(2,10);
        Page<SysLog> page = new Page<>(1,100000);
        return service.getList(page);
    }

}
